import { sendRequest } from '@/http';

const baseUrl = '/admin/institution';

/* 修改养老机构院区建筑 */
export const editBranchBuilding = (data: any) =>
  sendRequest({
    url: `${baseUrl}/editBranchBuilding`,
    method: 'post',
    data,
  });

/* 新建养老机构院区建筑 */
export const createBranchBuilding = (data: any) =>
  sendRequest({
    url: `${baseUrl}/createBranchBuilding`,
    method: 'post',
    data,
  });

/* 查询养老机构院区建筑 */
export const queryBranchBuildingList = (branchId: string) =>
  sendRequest({
    url: `${baseUrl}/queryBranchBuildingList`,
    method: 'get',
    params: { branchId },
  });

/* 删除养老机构院区建筑 */
export const deleteBranchBuilding = (buildingId: string) =>
  sendRequest({
    url: `${baseUrl}/deleteBranchBuilding`,
    method: 'post',
    data: { buildingId },
  });
